/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
var contenido = "<select id=\"modelos\" name=\"modelos\">" +
        "<option value=\"1\">Elemento 1<\option>" +
        "<option value=\"2\"><\%= marcaSel \%><\option>" +
        "</select>";

function loadXMLDoc()
{
    var xmlhttp;
    if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else
    {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function()
    {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
        {
            document.getElementById("marcaSelec").value = document.getElementById("marca").value;

        }
    }
    xmlhttp.open("POST", "cotizacion.jsp", true);
    xmlhttp.send();
}


function actualizaMarca(nuMarca) {
    /*            xmlHttp = ajaxFunction();
     xmlHttp.onreadystatechange = actualizaMarca;
     var valor  = nuMarca;
     xmlHttp.open("POST", "UPDATECOMBO?accion=reloadMarcas&tipoVehiculo=" + valor , true);
     xmlHttp.send(null);
     document.cotizacionForm.marca.disabled=true;
     */

}

